import menuList from "mock/database/menu"

export default [
    {
        url: '/api/dev/menu',
        method: 'post',
        response: ({ body }: any) => {
            const menu = body.username === 'admin' ? menuList : [menuList.filter((item, index) => index == 0)];
            return {
                code: 200,
                data: {
                    menu,
                },
                message: 'success'
            }
        },
    }
]